// 列表头按钮配置

import url from "@/axios/url";
const { mesUrl, adminUrl, wmsUrl } = url()
export const exportUrl = `${mesUrl}reportOperate/deliveryTimeObtainExport`

// 搜索条件配置
export const searchConfig = {
  data() {
    const self = this;
    return {
      searchDialog: {
        inline: true,
        formDesc: {
          modelName: {
            type: "input",
            label: '车型',
          },
          vinCode: {
            type: "input",
            label: 'VIN编码',
          },
          uwbCode: {
            type: "input",
            label: 'UWB编码',
          },
          receiveCarTimeDate: {
            type: "daterange",
            label: "接车时间",
            attrs: {
              valueFormat: "yyyy-MM-dd",
              searchArrKey: ["receiveCarTimeMin", "receiveCarTimeMax"],
            },
          },
          // recheckStartTimeDate: {
          //   type: "daterange",
          //   label: "复检开始时间",
          //   attrs: {
          //     valueFormat: "yyyy-MM-dd",
          //     searchArrKey: ["recheckStartTimeMin", "recheckStartTimeMax"],
          //   },
          // },
          // recheckEndTimeDate: {
          //   type: "daterange",
          //   label: "复检结束时间",
          //   attrs: {
          //     valueFormat: "yyyy-MM-dd",
          //     searchArrKey: ["recheckEndTimeMin", "recheckEndTimeMax"],
          //   },
          // },
          // preparationStartTimeDate: {
          //   type: "daterange",
          //   label: "整备开始时间",
          //   attrs: {
          //     valueFormat: "yyyy-MM-dd",
          //     searchArrKey: ["preparationStartTimeMin", "preparationStartTimeMax"],
          //   },
          // },
          // preparationEndTimeDate: {
          //   type: "daterange",
          //   label: "整备结束时间",
          //   attrs: {
          //     valueFormat: "yyyy-MM-dd",
          //     searchArrKey: ["preparationEndTimeMin", "preparationEndTimeMax"],
          //   },
          // },
          // qualityStartTimeDate: {
          //   type: "daterange",
          //   label: "质检开始时间",
          //   attrs: {
          //     valueFormat: "yyyy-MM-dd",
          //     searchArrKey: ["qualityStartTimeMin", "qualityStartTimeMax"],
          //   },
          // },
          // qualityTestingTimeDate: {
          //   type: "daterange",
          //   label: "质检结束时间",
          //   attrs: {
          //     valueFormat: "yyyy-MM-dd",
          //     searchArrKey: ["qualityTestingTimeMin", "qualityTestingTimeMax"],
          //   },
          // },
          departureTimeDate: {
            type: "daterange",
            label: "离场时间",
            attrs: {
              valueFormat: "yyyy-MM-dd",
              searchArrKey: ["departureTimeMin", "departureTimeMax"],
            },
          },
        },
      },
    };
  },
};

export const operateList = [
  {
    name: $i18n.t("common.export"),
    type: "primary",
    icon: "el-icon-download",
    handleName: "export", //点击时返回的标识
    url: exportUrl,
    //auth: "auth:operlog:export", //权限字段
  },
]
// 新增/删除表单配置
